package com.thinkgem.jeesite.modules.sys.exception;

public class BusinessException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public BusinessException(String frdMessage) {
		super(createFriendlyErrMsg(frdMessage));
	}

	public BusinessException(Throwable throwable) {
		super(throwable);
	}

	public BusinessException(Throwable throwable, String frdMessage) {
		super(frdMessage, throwable);
	}

	private static String createFriendlyErrMsg(String msgBody) {
		StringBuffer friendlyErrMsg = new StringBuffer("");
		friendlyErrMsg.append(msgBody);
		return friendlyErrMsg.toString();
	}
}